namespace BuildingBlocks.Abstractions.Permissions;

public class PermissionBindingDto
{
    public string resourceId { get; set; } = default!;   // 资源ID/策略ID
    public string permissionKey { get; set; } = default!;   // e.g. "catalog:item:view"   
    public bool isActive{ get; set; }    // 是否启用（未绑定/未启用→拒绝）
    public string? description { get; set; } // 可选
    public string? fromServiceName { get; set; } // 可选，来源服务
    public string PermissionScope { get; set; } = "Local"; // 权限范围本地验证/中心验证


}